package com.dragon.modules.yuegou.excel.order;

import com.dragon.modules.media.annotations.ExcelSheet;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;
@com.dragon.modules.media.annotations.ExcelWorkbook(template = "classpath:\\excel\\order\\order.xlsx")
public class OrderWorkbook {
	@ExcelSheet
	@JsonProperty("订单记录表")
	private List<OrderRow> order;

	public static class OrderRow {
		@JsonProperty("订单号")
		private String id;

		@JsonProperty("子订单号")
		private String childOrders;

		@JsonProperty("订单类型")
		private String type;

		@JsonProperty("商品名称")
		private String productName;

		@JsonProperty("规格")
		private String skuAttrs;

		@JsonProperty("提交时间")
		private LocalDateTime orderTime;

		@JsonProperty("提交人")
		private String submitter;

		@JsonProperty("金额")
		private BigDecimal amount;

		@JsonProperty("积分")
		private Integer points;

		@JsonProperty("商户")
		private String merchantName;

		@JsonProperty("订单状态")
		private String status;

		@JsonProperty("支付方式")
		private String paymentMethod;

		public String getChildOrders() {
			return childOrders;
		}

		public void setChildOrders(String childOrders) {
			this.childOrders = childOrders;
		}

		public String getId() {
			return id;
		}

		public void setId(String id) {
			this.id = id;
		}

		public String getType() {
			return type;
		}

		public void setType(String type) {
			this.type = type;
		}

		public LocalDateTime getOrderTime() {
			return orderTime;
		}

		public void setOrderTime(LocalDateTime orderTime) {
			this.orderTime = orderTime;
		}

		public String getSubmitter() {
			return submitter;
		}

		public void setSubmitter(String submitter) {
			this.submitter = submitter;
		}

		public BigDecimal getAmount() {
			return amount;
		}

		public void setAmount(BigDecimal amount) {
			this.amount = amount;
		}

		public Integer getPoints() {
			return points;
		}

		public void setPoints(Integer points) {
			this.points = points;
		}

		public String getMerchantName() {
			return merchantName;
		}

		public void setMerchantName(String merchantName) {
			this.merchantName = merchantName;
		}

		public String getStatus() {
			return status;
		}

		public void setStatus(String status) {
			this.status = status;
		}

		public String getProductName() {
			return productName;
		}

		public void setProductName(String productName) {
			this.productName = productName;
		}
		

		public String getSkuAttrs() {
			return skuAttrs;
		}

		public void setSkuAttrs(String skuAttrs) {
			this.skuAttrs = skuAttrs;
		}

		public String getPaymentMethod() {
			return paymentMethod;
		}

		public void setPaymentMethod(String paymentMethod) {
			this.paymentMethod = paymentMethod;
		}
	}

	public List<OrderRow> getOrder() {
		return order;
	}

	public void setOrder(List<OrderRow> order) {
		this.order = order;
	}
}
